@extends('public.public')

@section('main')
    <div class="panel panel-default">
        <!-- Default panel contents -->
        <div class="panel-heading">添加学生信息</div>
        <!-- Table -->
        <div class="tabel">
            <tr>
                <form class="form-horizontal" action="{{url('test/update')}}" method="post">
                    {{csrf_field()}}
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
                        <div class="col-sm-10">
                            <input type="text" name="name" value="{{$res->name}}" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">年龄</label>
                        <div class="col-sm-10">
                            <input type="text" name="age" value="{{$res->age}}" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">班级</label>
                        <div class="col-sm-10">
                            <input type="text" name="cla" value="{{$res->cla}}" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">性别</label>
                        <div class="col-sm-10">
                            <label class="radio-inline">
                                <input type="radio" name="sex" id="inlineRadio1" value="男"> 男
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="sex" id="inlineRadio2" value="女"> 女
                            </label>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">提交</button>
                        </div>
                    </div>
                    <input type="hidden" name="id" value="{{$res->id}}" class="form-control">
                </form>
            </tr>
        </div>
    </div>
@stop